package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.TrackStat;
import com.atguigu.tingshu.vo.album.TrackStatVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TrackStatMapper extends BaseMapper<TrackStat> {


    /**
     * 更新声音的播放数
     * @param trackId
     * @param statType
     * @param count
     */
    int updateTrackPlayStatNum(@Param(value = "trackId") Long trackId,@Param(value = "type") String statType,@Param(value = "count") Integer count);

    /**
     * 查询声音的各个维度值
     * @param trackId
     * @return
     */
    TrackStatVo getTrackStatVo(Long trackId);
}
